package falstad;

public class WizardRobotDriver implements RobotDriver {

	private Robot robot;
	
	public WizardRobotDriver(Robot r)
	{
		this.robot = r;
	}
	
	
	@Override
	public void setRobot(Robot r) throws UnsuitableRobotException {
		this.robot = r;

	}

	@Override
	public boolean drive2Exit() throws Exception {
		while (!robot.isAtGoal())
		{
			robot.move(1, true);
		}
		return true;
	}

	@Override
	public float getEnergyConsumption() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int getPathLength() {
		// TODO Auto-generated method stub
		return 0;
	}

}
